/***********************************************
 @Name :        小铭同学
 @Time :        2025-09-03
 @Email :       LiaoMingWJ233@163.com
 @Comment :     自定义控件 天气预报信息类 低温曲线图
 @FileName :    weatherlowchart.h
 @Version :     1.0
************************************************/


#ifndef WEATHERLOWCHART_H
#define WEATHERLOWCHART_H

#include <QWidget>
#include <QPainter>
#include "weatherchart.h"  // 继承高温图表基类
#include "weather_json.h" // 假设这是包含Forecast定义的头文件

class WeatherLowChart : public WeatherChart
{
    Q_OBJECT
public:
    explicit WeatherLowChart(QWidget *parent = nullptr);

protected:
    void calculateYRange(double &min, double &max) override;

    void drawTemperatureCurve(QPainter &painter, const QRect &chartRect, 
                            double minTemp, double maxTemp) override;
    void drawDateLabels(QPainter &painter, const QRect &dateRect) override;     
    
signals:
    
};

#endif // WEATHERLOWCHART_H
